<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>作业内容</title>
<!-- 引入ckeditor组件 --> 

	<script src="${pageContext.request.contextPath }/ckeditor/ckeditor.js"></script>
	
	<link rel="stylesheet" href="${pageContext.request.contextPath }/ckeditor/samples/css/sample.css">
</head>
<body>
<h2 align="center">${message.messageTitle }</h2><br>
${message.messageContent }
<div align="center">发布人ID:${message.employeeID }
发布时间:${message.publishTime }</div>

<c:forEach items="${requestScope.replyList }" var="reply">
<div>
  ${reply.replyContent }
  <div align="right">作答人ID:${reply.employeeID }
    回复时间：${reply.replyTime }
  </div>
</div>
</c:forEach>

<div align="center">
第<c:forEach varStatus="stat" begin="1" end="${page.totalPage }">
  <a href="GetMessage?messageID=${message.messageID }&currentPage=${stat.index}"></a>
</c:forEach>页
</div>

<div align="left">
 <p>作答</p>
 <p><font color="red">${error }</font></p>
<form action="/Chapter01/commitReply" method="post">
   <p>
  <textArea  class="ckeditor" rows="20" cols="30" name="replyContent"></textArea>
  </p>
  <input type="hidden" name="messageID" value="${message.messageID }"/>
   <input type="submit" value="提交"/>
    <input type="reset" value="重置"/>
</form>
</div>
</body>
</html>